package com.sunagy.demand.front.security;

import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.UserDetails;

import java.io.Serializable;
import java.util.Collection;

/**
 * desc：#TODO fill me ！
 * author：三餘無夢生
 * date：2018/4/26
 * time：下午4:37
 */
@Data
public class SecurityUserDetails implements UserDetails, Serializable {

    private Integer userId;
    private String token;
    private String username;
    private String password;
    private boolean enabled;
    private Collection<MyGrantedAuthority> authorities;

    @Override
    public Collection<? extends GrantedAuthority> getAuthorities() {
        return null;
    }

    @Override
    public String getPassword() {
        return null;
    }

    @Override
    public String getUsername() {
        return null;
    }

    @Override
    public boolean isAccountNonExpired() {
        return false;
    }

    @Override
    public boolean isAccountNonLocked() {
        return false;
    }

    @Override
    public boolean isCredentialsNonExpired() {
        return false;
    }

    @Override
    public boolean isEnabled() {
        return false;
    }
}
